function [ output subjectinfo ] = changeElectrodeInfo( subjectname, electrodename,subregion)

%change SelectedManually and Subregion

subjectinfo = SubjectInfo.Load(subjectname);

findelecs = [];
for i = 1:length([subjectinfo.Electrodes]);
    findelecs(i) = strcmp(subjectinfo.Electrodes(i).Label,electrodename);
end

elecnumber = double(find(findelecs))

subjectinfo.Electrodes(elecnumber).SelectedManually = 1;
subjectinfo.Electrodes(elecnumber).Subregion = subregion;


[output] = Save(subjectinfo);
